package com.alex.service;
import java.util.List;

import com.alex.DAO.IAdminDAO;
import com.alex.entity.Administrator;
import com.alex.service.*;

public class AdminService implements IAdminService {
	private IAdminService AdminService;
	private IAdminDAO adminDAO;
	public IAdminDAO getAdminDAO(){
		return adminDAO;
	}
	public void setAdminDAO(IAdminDAO adminDAO){
		this.adminDAO=adminDAO;
		
	}
	public void saveAdmin(Administrator admin){
		this.adminDAO.saveAdmin(admin);
	}
	public Administrator validateAdmin(String username,String password){
		return this.adminDAO.validateAdmin(username, password);
	}
	public void deleteUser(List users){
		this.adminDAO.deleteUser(users);
	}
	public List showUser(){
		return this.adminDAO.showUser();
	}
	public List QueryUser(String user){
		return this.adminDAO.QueryUser(user);
	}
	
	
	

}
